/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package do_.com.bpd.business.referrals.referralservermanager.statusprocessor;

import do_.com.bpd.business.referrals.referralservermanager.Installer;

/**
 *
 * @author Administrator
 */
public class StatusTranslator {

    public static String translate(String readableStatus) {
        if (readableStatus.equals("CAPTURED") || readableStatus.equals("")) {
            return "CA";
        } else if (readableStatus.equals("APPROVED")) {
            return "AP";
        } else if (readableStatus.equals("REJECTED")) {
            return "RE";
        } else if (readableStatus.equals("ISSUED")) {
            return "EM";
        } else if (readableStatus.equals("ACTIVE")) {
            return "AC";
        } else if (readableStatus.equals("USED")) {
            return "US";
        } else {
            return "UN";
        }
    }

    public StatusTranslator() {
        String packageUri = "do_.com.bpd.business.referrals.referralservermanager";
        String property = System.getProperty(packageUri + "/status_signals");
//        ConfigBridge cb = new ConfigBridge();
//
//        if (Installer.statusCodes.isEmpty()) {
//            Installer.statusCodes = cb.getConfiguration(packageUri + "/status_signals");
//        }

        String scs = Installer.statusCodes;




    }
}
